how to solve exact differential equation